/* Unified low-fidelity wireframe styles (grayscale) */
:root {
  --bg: #f7f7f7;
  --panel: #ffffff;
  --border: #d9d9d9;
  --text: #222;
  --muted: #888;
  --accent: #3f51b5;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header.wf-header, .wf-topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-title { font-weight: 600; }
.wf-subtitle { color: var(--muted); font-size: 14px; }

.wf-container { padding: 16px; }

.wf-card {
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 16px;
}

/* Block-style clickable placeholder cards */
.wf-block { display: block; background: var(--panel); border: 1px dashed var(--border); border-radius: 10px; padding: 12px; color: inherit; text-decoration: none; transition: background .15s ease, border-color .15s ease; text-align: center; }
.wf-block:hover { background: #fafafa; border-color: #c9c9c9; }
.wf-block-thumb { height: 120px; background: #eee; border-radius: 8px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; }
.wf-block-title { font-weight: 600; margin-top: 4px; }
.wf-block-desc { color: var(--muted); font-size: 12px; }

.wf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }

.wf-input, .wf-select, .wf-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.wf-row { display: flex; gap: 12px; align-items: center; }
.wf-row + .wf-row { margin-top: 12px; }

.wf-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.wf-btn.primary { border-color: var(--accent); color: #fff; background: var(--accent); }
.wf-btn.ghost { background: transparent; }

.wf-table { width: 100%; border-collapse: collapse; }
.wf-table th, .wf-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
}
.wf-table th { background: #fafafa; }

.wf-sidebar-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.wf-sidebar { border-right: 1px solid var(--border); background: #fff; padding: 16px; }
.wf-sidebar a { display: block; padding: 8px 10px; color: inherit; text-decoration: none; border-radius: 6px; }
.wf-sidebar a.active, .wf-sidebar a:hover { background: #f0f0f0; }

.wf-top-actions { display: flex; gap: 8px; margin-left: auto; }

.wf-tabs { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); background: #fff; }
.wf-tab { padding: 10px 8px; text-align: center; color: var(--muted); text-decoration: none; }
.wf-tab.active { color: var(--accent); font-weight: 600; }
.wf-content { padding-bottom: 64px; }

.wf-fab-center { position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; z-index: 20; background: var(--accent); color: #fff; border-radius: 999px; padding: 12px 20px; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.15); border: 1px solid rgba(255,255,255,.4); }
.wf-fab-center:hover { filter: brightness(0.95); }

.wf-chip { border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; display: inline-block; margin-right: 8px; color: var(--muted); }

.wf-skeleton { height: 16px; background: #eee; border-radius: 4px; }
.wf-skeleton.card { height: 120px; }

.wf-section-title { font-weight: 600; margin: 12px 0 8px; }

.wf-note { color: var(--muted); font-size: 12px; }

/* mobile responsiveness */
@media (max-width: 1024px) {
  .col-3, .col-4 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .wf-grid { grid-template-columns: repeat(6, 1fr); }
  .col-3, .col-4 { grid-column: span 6; }
  .col-6 { grid-column: span 3; } /* 保持一行两个 */
}


